import * as types from "./types"
import { Commit, Dispatch, Action, ActionTree } from "vuex"
import { State } from "../index"
const actions: ActionTree<State, any> = {
  setChartId: (context: { commit: Commit }) => {
    context.commit(types.SET_CHART_ID_NUM.key)
  },
  setToken:(context,token)=>{
    context.commit('setToken',token)
  },
  setId:(context,id)=>{
    context.commit('setId',id)
  },
  setUserInfo:(context,userInfo)=>{
    context.commit('setUserInfo',userInfo)
  }
}
export default actions
